﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program03
{
    class Math
    {
        public int Value { get; set; }

        //表达式方法，计算平方
        public int GetSquare() => Value * Value;

        //静态表达式方法，计算平方
        public static int GetSquareOf(int num) => num * num;
    }
}
